# 1 "motor6.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "motor6.c"
# 1 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h" 1 3
# 99 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h" 3
# 1 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/sfr_defs.h" 1 3
# 126 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/sfr_defs.h" 3
# 1 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/inttypes.h" 1 3
# 37 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/inttypes.h" 3
# 1 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdint.h" 1 3
# 121 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdint.h" 3
typedef int int8_t __attribute__((__mode__(__QI__)));
typedef unsigned int uint8_t __attribute__((__mode__(__QI__)));
typedef int int16_t __attribute__ ((__mode__ (__HI__)));
typedef unsigned int uint16_t __attribute__ ((__mode__ (__HI__)));
typedef int int32_t __attribute__ ((__mode__ (__SI__)));
typedef unsigned int uint32_t __attribute__ ((__mode__ (__SI__)));

typedef int int64_t __attribute__((__mode__(__DI__)));
typedef unsigned int uint64_t __attribute__((__mode__(__DI__)));
# 142 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdint.h" 3
typedef int16_t intptr_t;




typedef uint16_t uintptr_t;
# 159 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdint.h" 3
typedef int8_t int_least8_t;




typedef uint8_t uint_least8_t;




typedef int16_t int_least16_t;




typedef uint16_t uint_least16_t;




typedef int32_t int_least32_t;




typedef uint32_t uint_least32_t;







typedef int64_t int_least64_t;






typedef uint64_t uint_least64_t;
# 213 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdint.h" 3
typedef int8_t int_fast8_t;




typedef uint8_t uint_fast8_t;




typedef int16_t int_fast16_t;




typedef uint16_t uint_fast16_t;




typedef int32_t int_fast32_t;




typedef uint32_t uint_fast32_t;







typedef int64_t int_fast64_t;






typedef uint64_t uint_fast64_t;
# 273 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/stdint.h" 3
typedef int64_t intmax_t;




typedef uint64_t uintmax_t;
# 38 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/inttypes.h" 2 3
# 77 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/inttypes.h" 3
typedef int32_t int_farptr_t;



typedef uint32_t uint_farptr_t;
# 127 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/sfr_defs.h" 2 3
# 100 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h" 2 3
# 286 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h" 3
# 1 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotn24.h" 1 3
# 38 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotn24.h" 3
# 1 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotnx4.h" 1 3
# 39 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotn24.h" 2 3
# 287 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h" 2 3
# 334 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h" 3
# 1 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/portpins.h" 1 3
# 335 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h" 2 3

# 1 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/common.h" 1 3
# 337 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h" 2 3

# 1 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/version.h" 1 3
# 339 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h" 2 3


# 1 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/fuse.h" 1 3
# 234 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/fuse.h" 3
typedef struct
{
    unsigned char low;
    unsigned char high;
    unsigned char extended;
} __fuse_t;
# 342 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h" 2 3


# 1 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/lock.h" 1 3
# 345 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h" 2 3
# 2 "motor6.c" 2
# 1 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h" 1 3
# 81 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h" 3
# 1 "c:\\program files (x86)\\arduino\\hardware\\tools\\avr\\bin\\../lib/gcc/avr/4.3.2/include/stddef.h" 1 3 4
# 214 "c:\\program files (x86)\\arduino\\hardware\\tools\\avr\\bin\\../lib/gcc/avr/4.3.2/include/stddef.h" 3 4
typedef unsigned int size_t;
# 82 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h" 2 3
# 211 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h" 3
typedef void prog_void __attribute__((__progmem__));
typedef char prog_char __attribute__((__progmem__));
typedef unsigned char prog_uchar __attribute__((__progmem__));

typedef int8_t prog_int8_t __attribute__((__progmem__));
typedef uint8_t prog_uint8_t __attribute__((__progmem__));
typedef int16_t prog_int16_t __attribute__((__progmem__));
typedef uint16_t prog_uint16_t __attribute__((__progmem__));
typedef int32_t prog_int32_t __attribute__((__progmem__));
typedef uint32_t prog_uint32_t __attribute__((__progmem__));

typedef int64_t prog_int64_t __attribute__((__progmem__));
typedef uint64_t prog_uint64_t __attribute__((__progmem__));
# 744 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h" 3
extern const prog_void * memchr_P(const prog_void *, int __val, size_t __len) __attribute__((__const__));
extern int memcmp_P(const void *, const prog_void *, size_t) __attribute__((__pure__));
extern void *memcpy_P(void *, const prog_void *, size_t);
extern void *memmem_P(const void *, size_t, const prog_void *, size_t) __attribute__((__pure__));
extern const prog_void * memrchr_P(const prog_void *, int __val, size_t __len) __attribute__((__const__));
extern char *strcat_P(char *, const prog_char *);
extern const prog_char * strchr_P(const prog_char *, int __val) __attribute__((__const__));
extern const prog_char * strchrnul_P(const prog_char *, int __val) __attribute__((__const__));
extern int strcmp_P(const char *, const prog_char *) __attribute__((__pure__));
extern char *strcpy_P(char *, const prog_char *);
extern int strcasecmp_P(const char *, const prog_char *) __attribute__((__pure__));
extern char *strcasestr_P(const char *, const prog_char *) __attribute__((__pure__));
extern size_t strcspn_P(const char *__s, const prog_char * __reject) __attribute__((__pure__));
extern size_t strlcat_P (char *, const prog_char *, size_t );
extern size_t strlcpy_P (char *, const prog_char *, size_t );
extern size_t strlen_P(const prog_char *) __attribute__((__const__));
extern size_t strnlen_P(const prog_char *, size_t) __attribute__((__const__));
extern int strncmp_P(const char *, const prog_char *, size_t) __attribute__((__pure__));
extern int strncasecmp_P(const char *, const prog_char *, size_t) __attribute__((__pure__));
extern char *strncat_P(char *, const prog_char *, size_t);
extern char *strncpy_P(char *, const prog_char *, size_t);
extern char *strpbrk_P(const char *__s, const prog_char * __accept) __attribute__((__pure__));
extern const prog_char * strrchr_P(const prog_char *, int __val) __attribute__((__const__));
extern char *strsep_P(char **__sp, const prog_char * __delim);
extern size_t strspn_P(const char *__s, const prog_char * __accept) __attribute__((__pure__));
extern char *strstr_P(const char *, const prog_char *) __attribute__((__pure__));
# 3 "motor6.c" 2
# 1 "c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/interrupt.h" 1 3
# 4 "motor6.c" 2
# 1 "config.h" 1
# 68 "config.h"
  uint8_t PWR_ON[] = {
    (1 << (5)) + (1 << (2)),
    (1 << (5)) + (1 << (0)),
    (1 << (3)) + (1 << (0)),
    (1 << (3)) + (1 << (4)),
    (1 << (1)) + (1 << (4)),
    (1 << (1)) + (1 << (2))
  };
  uint8_t PWR_BREAK[] = {
    (1 << (4)) + (1 << (2)),
    (1 << (4)) + (1 << (0)),
    (1 << (2)) + (1 << (0)),
    (1 << (2)) + (1 << (4)),
    (1 << (0)) + (1 << (4)),
    (1 << (0)) + (1 << (2))
  };
  uint8_t PWR_OFF[] = {
    0 + (1 << (2)),
    0 + (1 << (0)),
    0 + (1 << (0)),
    0 + (1 << (4)),
    0 + (1 << (4)),
    0 + (1 << (2))
  };




  uint8_t NextStep[] = {
    1, 2, 3, 4, 5, 0
  };
  uint8_t DigitRead[] = {(1 << (2)), (1 << (1)), (1 << (0)), (1 << (2)), (1 << (1)), (1 << (0))};
  uint8_t DigitReadBaseVal[] = {(1 << (2)), 0, (1 << (0)), 0, (1 << (1)), 0};
# 5 "motor6.c" 2
# 17 "motor6.c"
volatile uint8_t aread;


int main(void) {

  (*(volatile uint8_t *)((0x26) + 0x20)) = 128;
  (*(volatile uint8_t *)((0x26) + 0x20)) = 0;

  (*(volatile uint8_t *)((0x2E) + 0x20)) = 5;





  (*(volatile uint8_t *)((0x07) + 0x20)) = 6;
  (*(volatile uint8_t *)((0x01) + 0x20)) |= (1 << (6));
  (*(volatile uint8_t *)((0x06) + 0x20)) = (1 << (7)) | (1 << (6)) | (1 << (0)) | (1 << (1)) | (1 << (2)) | (1 << (3)) | (1 << (5));
  (*(volatile uint8_t *)((0x03) + 0x20)) = (1 << (4));


  (*(volatile uint8_t *)((0x1A) + 0x20)) = (1 << (5)) | (1 << (4)) | (1 << (3)) | (1 << (2)) | (1 << (1)) | (1 << (0));


  (*(volatile uint8_t *)((0x1B) + 0x20)) = (1 << (4)) | (1 << (2)) | (1 << (0));

  __asm__ __volatile__ ("sei" ::);

  uint8_t val;


  for(;;)
  {

    (*(volatile uint8_t *)((0x1B) + 0x20)) = (1 << (3)) + (1 << (4));

    (*(volatile uint16_t *)((0x2C) + 0x20)) = 0;
    val = aread;
    while((*(volatile uint16_t *)((0x2C) + 0x20)) < val);

    (*(volatile uint8_t *)((0x1B) + 0x20)) = (1 << (5)) + (1 << (2));

    (*(volatile uint16_t *)((0x2C) + 0x20)) = 0;
    val = aread;
    while((*(volatile uint16_t *)((0x2C) + 0x20)) < val);

  }
}

void __vector_6 (void) __attribute__ ((signal,used, externally_visible)) ; void __vector_6 (void){
}

void __vector_2 (void) __attribute__ ((signal,used, externally_visible)) ; void __vector_2 (void){

}

void __vector_13 (void) __attribute__ ((signal,used, externally_visible)) ; void __vector_13 (void){
  aread = (*(volatile uint8_t *)((0x05) + 0x20));
}
